<%@ page language="java" pageEncoding="UTF-8"%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/style/css/pageCommon.css" />
    <script language="javascript" src="${pageContext.request.contextPath}/script/jquery.js"></script>
    <script language="javascript" src="${pageContext.request.contextPath}/script/commonUtils.js" charset="utf-8"></script>
    <script type="text/javascript">
    </script>
</head>
<style>
td{
 height:25px;
}
</style>
<script type="text/javascript">
var paramId='${paramId}';
var paramKey='${paramKey}';
var paramValue='${paramValue}';
var details='${details}';
paramValue=decodeURI(paramValue);
details=decodeURI(details);

var sessionId = '${sessionId}';
$(function(){
    $("input[name='paramId']").val(paramId);
    $("input[name='paramKey']").val(paramKey);
    $("input[name='paramValue']").val(paramValue);
    $("input[name='details']").val(details);
});



function update(){
	var paramKey=$("input[name='paramKey']").val();
	var paramValue=$("input[name='paramValue']").val();
	var details=$("input[name='details']").val();
	var param={
	        paramId:paramId,
            paramKey:paramKey,
            paramValue:paramValue,
            details:details,
			"method":"modifyParam"
			};
	var url="${pageContext.request.contextPath}/common/commonController?sessionId="+sessionId;
	$.ajax({
	    url : url,
	    type : "POST",
	    async : true,
	    contentType: "application/json; charset=utf-8",
	    data : JSON.stringify(param),
	    dataType : 'json',
	    success : function(data) {
	    	if(data.resultCode=="000000"){
	    		alert("修改成功");
	    		window.history.back(-1); 
	    	}else{
	    		alert(data.resultMsg)
	    	}
	    }
	});
	return false;
}

function goBack(){
	window.history.go(-1);
}

</script>
<body>

<div id="Title_bar">
    <div id="Title_bar_Head">
        <div id="Title_Head"></div>
        <div id="Title">
            <img border="0" width="13" height="13" src="${pageContext.request.contextPath}/style/images/title_arrow.gif"/> param信息修改
        </div>
        <div id="Title_End"></div>
    </div>
</div>

<div style="padding-left: 10px;">
       <div class="ItemBlock_Title1"><div class="ItemBlock_Title1">
        	<img border="0" width="4" height="7" src="${pageContext.request.contextPath}/style/images/item_point.gif" /> param信息修改 </div>
        </div>
        
        
          <div class="ItemBlockBorder">
            <div class="ItemBlock">
                <table cellpadding="0" cellspacing="0" class="mainForm">
                    <input type="text" name="paramId" hidden="hidden"></input>
					<tr>
                        <td>paramKey</td>
                        <td><input type="text" name="paramKey" disabled="disabled"></input></td>
                        <td>描述</td>
                        <td><input type="text" name="details" style="width:100%"></input></td>
                    </tr>

                    <tr>
                        <td>paramValue</td>
                        <td colspan="3"><input type="text" name="paramValue" style="width:90%" ></input> </td>
                    </tr>
                </table>
            </div>
        </div>

         <div id="InputDetailBar" style="float: left">
            <input type="image" src="${pageContext.request.contextPath}/style/images/button/save.png"  onclick="return update();" />
            <input type="image" src="${pageContext.request.contextPath}/style/images/button/goBack.png"  onclick="goBack(1)" />
        </div>
        
        
        
   </div>

</body>
</html>
